package com.gitee.maskit.jackson.converter;

import com.fasterxml.jackson.databind.util.StdConverter;

import java.util.Date;

public class JacksonDateToLong extends StdConverter<Date, Long> {
    public Long convert(Date value) {
        return null != value ? value.getTime() : null;
    }
}
